package a.oschina.observedemo.demo4.version2;

/**
 * &lt;功能详细描述&gt;
 *
 * @author Administrator
 * @version [版本号, 2018/10/23]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class Test {
    public static void main(String[] args) {

        Notifier boss = new Boss();

        NbaMatcher nbaMatcher = new NbaMatcher("", boss);
        ComedyMatcher comedyMatcher = new ComedyMatcher("", boss);


        boss.attach(nbaMatcher);
        boss.attach(comedyMatcher);

        boss.setAction("胡汉三回来了");

        boss.notifyObserver();


    }
}
